Open
Conversation
Contributor
|
Here's the code health analysis summary for commits Analysis Summary
|
with schema validation and UI integration
Member
Author
Changes done, I fixed as much as I could, the commit fb15e1e is a bit big but it adds the user option to toggle on/off ddg bangs |
Meierschlumpf
requested changes
Jan 27, 2026
apps/nextjs/src/app/[locale]/manage/users/[userId]/general/_components/_ddg-bangs.tsx
Outdated
Show resolved
Hide resolved
Replace generic Error with ResponseError from @homarr/common/server for better error handling consistency across the codebase.
Add JSDoc comment explaining why lowerBound uses binary search (O(log n)) instead of findIndex (O(n)) for searching ~13,000+ DuckDuckGo bangs.
Consolidate the DuckDuckGo bangs toggle into the existing search preferences form instead of having a separate form section. - Add ddgBangsEnabled to userChangeSearchPreferencesSchema - Update changeSearchPreferencesAsync to handle ddgBangs - Add toggle to ChangeSearchPreferencesForm component - Remove standalone DdgBangsForm component - Deprecate standalone changeDdgBangs endpoint (kept for API compat)
Generated migrations using pnpm db:migration:mysql:generate and pnpm db:migration:postgresql:generate for the ddgBangs user column.
Member
Author
|
@Meierschlumpf I addressed the changes, let me know if it works for you |
Member
Member
Author
Member
|
Okay makes sense, can you fix the CI? Then we can merge IMO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




What
Reworks Spotlight search to support !bang selection (configured engines + DuckDuckGo), and makes the default Spotlight view a launcher-like help screen.
Changes
Screenshots